package com.sxbbc.common.core.service.impl;

import com.sxbbc.common.core.entity.jz.OrderSeckillConfig;
import com.sxbbc.common.core.mapper.jz.OrderSeckillConfigMapper;
import com.sxbbc.common.core.service.IOrderSeckillConfigService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 秒杀订单附属表 服务实现类
 * </p>
 *
 * @author leehao
 * @since 2019-06-25
 */
@Service
public class OrderSeckillConfigServiceImpl extends ServiceImpl<OrderSeckillConfigMapper, OrderSeckillConfig> implements IOrderSeckillConfigService {

	/**
	 * 获取当前用户购买此类秒杀产品数量
	 * @param seckillConfig
	 * @return
	 */
	public int getBuyNum(OrderSeckillConfig config) {
		return baseMapper.getBuyNum(config);
	}

}
